package com.mipo.mybatis.mysql.service.impl;

import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.mipo.mybatis.mysql.base.BaseServiceImpl;
import com.mipo.mybatis.mysql.mapper.UserRoleMapper;
import com.mipo.mybatis.mysql.model.po.UserRole;
import com.mipo.mybatis.mysql.service.IUserRoleService;

@Service
public class UserRoleServiceImpl extends BaseServiceImpl<UserRole> implements IUserRoleService {

	private UserRoleMapper userRoleMapper;
	
	@Resource
    public void constantMapper(UserRoleMapper userRoleMapper) {
        this.userRoleMapper = userRoleMapper;
        super.setMapper(userRoleMapper);
    }
	
	@Override
	public List<UserRole> searchUserRoleByPram(Map<String, Object> param) {
		return userRoleMapper.searchUserRoleByPram(param);
	}

}
